﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Transiteers.Models
{
    public partial class TransiteersDB
    {

        public Task GetTask(int taskID)
        {
            return BaseDB.Tasks.FirstOrDefault(t => t.ID == taskID);
        }

        public void Add(Task task)
        {
            BaseDB.Tasks.Add(task);
            BaseDB.SaveChanges();
        }

        public void Remove(Task task)
        {
            BaseDB.Tasks.Remove(task);
        }

    }
}